package com.patentbackend.patentmanage.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HomeController {


    /**
     * 跳转到首页
     * @param model
     * @return
     */
    @GetMapping("/")
    public String index(Model model) {
        return "index";
    }

    /**
     * 登录页面
     * @param model
     * @return
     */
    @GetMapping("/login")
    public String login(Model model) {
        return "login";
    }


    /**
     * 跳转到注册页面
     * @param model
     * @return
     */
    @GetMapping("/register")
    public String register(Model model) {
        return "register";
    }


}
